package com.yc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.yc.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * 考勤表;
 * @date : 2023-6-27
 */
@Data
@ApiModel(value = "考勤表")
@TableName("attendance")
public class Attendance extends BaseEntity implements Serializable,Cloneable {
    /**
     * 主键
     */
    @ApiModelProperty(name = "主键", notes = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 考勤老师
     */
    @ApiModelProperty(name = "考勤老师", notes = "")
    private Integer teacherid;
    /**
     * 学委或班长
     */
    @ApiModelProperty(name = "学委或班长", notes = "")
    private String stuid;
    /**
     * 日期
     */
    @ApiModelProperty(name = "日期", notes = "")
    private String date;
    /**
     * 课表Id
     */
    @ApiModelProperty(name = "课表Id", notes = "")
    private Integer scheduleid;
    /**
     * 备注
     */
    @ApiModelProperty(name = "备注", notes = "")
    private String remarks;
    /**
     * 图片或证明材料
     */
    @ApiModelProperty(name = "图片或证明材料", notes = "")
    private String imagepath;
    /**
     * 已到人数
     */
    @ApiModelProperty(name = "已到人数", notes = "")
    private Integer arrivedcount;
    /**
     * 考勤方式( 导入 扫码 快捷  点名 )
     */
    @ApiModelProperty(name = "考勤方式( 0导入 1扫码 2快捷  3点名 )", notes = "")
    private Integer signmethod;

    /**
     * 上课班级id
     */
    @ApiModelProperty(name = "上课班级id", notes = "")
    @TableField(exist = false)
    private String classId;

    @TableField(exist = false)
    @ApiModelProperty(name = "班级总人数", notes = "")
    private int total;

    @TableField(exist = false)
    @ApiModelProperty(name = "班级名称", notes = "")
    private String cname;

    @TableField(exist = false)
    @ApiModelProperty(name = "开始时间", notes = "")
    private String begin;

    @TableField(exist = false)
    @ApiModelProperty(name = "结束时间", notes = "")
    private String end;
}
